﻿using System.Collections.Generic;
using Ebt.Mvvm;
using Ebt.Mvvm.Navigator;

namespace Windows_8_MVVM.ViewModels.Pages
{
    public class HomePageModel : PageModel
    {
        private readonly RootModel _rootModel;
        private List<object> _itemsList;

        public HomePageModel(RootModel rootModel)
        {
            _rootModel = rootModel; 
            _itemsList = new List<object>
                              {
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object(),new object(),new object(),new object(),
                                  new object(),new object()
                              };
        }

        public List<object> ItemsList
        {
            get { return _itemsList; }
            set { OnPropertyChange(ref _itemsList, value); }
        }

        public override void OnNavigatedFrom(NavigationArgs navigationArgs)
        {
            base.OnNavigatedFrom(navigationArgs);
        }

        public override void OnNavigatedTo(NavigationArgs navigationArgs)
        {
            base.OnNavigatedTo(navigationArgs);
        }

        public override void OnNavigatingFrom(ref bool cancel)
        {
            base.OnNavigatingFrom(ref cancel);
        }
    }
}
